package com.atguigu.servicearticle.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.servicearticle.entity.EduArticl;
import com.atguigu.servicearticle.mapper.EduArticlMapper;
import com.atguigu.servicearticle.service.impl.EduArticlService;

/**
 * @author cyt
 * @create 2020-06-23 下午 4:35
 */
@Service
public class EduArticlServiceImpl extends ServiceImpl<EduArticlMapper, EduArticl> implements EduArticlService {
    // 分页查询
    @Override
    public void selectPage(Page<EduArticl> pageParam) {
        baseMapper.selectPage(pageParam, null);
        System.out.println(pageParam.getTotal());
    }
}
